

//地址时获取信息
function getAddAddress2Param(type) {
    var data = new Array();
    data['name'] = $('#name').val();
    data['phone'] = $('#phone').val();
    data['add'] = $('#address').val();
    data['door'] = $('#door').val();
    data['lat'] = $('#lat').val();
    data['lon'] = $('#lon').val();
    data['sex'] = $("input:radio:checked").val();
    var str = 'name=' + data.name + '&phone=' + data.phone + '&address=' + data.add + '&door=' + data.door + '&sex=' + data.sex + '&lat=' + data.lat + '&lon=' + data.lon;
    if (type == 1) {
        return data;
    } else {
        return str;
    }
}